<?php
    class HeheController extends Controller
    {
        public $siteName = 'Cười nghiêng ngả';
        public $siteSlogan = 'Cười nghiêng ngả';

        public $ogImage;         
        public $ogTitle;         


        public $user;
        public $userInfo;
        
        public $topNav = 'hehe';
        
        public function init(){
            parent::init();

            // init properties 
            if(!Yii::app()->user->isGuest){
                $this->user = Yii::app()->user->user;
                $this->userInfo = Yii::app()->user->userInfo;
            }
            
            $this->baseUrl = 'http://'.Yii::app()->params->domain;

        }
}